#region Microsoft Public License
/*
 * (c) Copyright Chenjun Wu. http://utablesdk.codeplex.com
 * 
 * This source is subject to the Microsoft Public License (Ms-PL).
 * Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
 * All other rights reserved.
 */
#endregion

﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using UTable.Input;
using UTable.Input.MultiTouch;
using UTable.Objects;
using UTable.Objects.Controls;

namespace UTable.Objects.Controls
{
	/// <summary>
	/// Interaction logic for UColorPicker.xaml
	/// </summary>
	public partial class UColorPicker : UUserControl
	{
		public UColorPicker()
		{
			InitializeComponent();
		}

		private void PickButton_Pressed(object sender, ButtonEventArgs args)
		{
			if (!Palette.IsOpen)
			{
				Palette.PlaceTarget = this;
				Palette.IsOpen = true;
			}
			else
			{
				Palette.IsOpen = false;
			}
		}
	}
}
